﻿
using Books.ViewModel.Paging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Books.ViewModel
{
    public interface IPagedSource<T>
    {
        Task<IPagedResponse<T>> GetPage(PageType refesh, int pageIndex, int pageSize);
        Task<IPagedResponse<T>> GetPageDataSearch(PageType refesh, int startIndex, int pageCount);
    }
}
